<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="author" content="江湖百晓生">
    
    
    
    
    

  
  
<link rel="stylesheet" href="/css/style.css">

    
    <title>transmission | 魔</title>
    <link href="https://acgboy.gitee.io" rel="prefetch" />

    
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/aos.css">
<link rel="stylesheet" href="/css/style.css">

    
<script src="/js/jquery.min.js"></script>

    
<script src="/js/bootstrap.min.js"></script>

    
<script src="/js/aos.js"></script>

    
<script src="/js/highslide/highslide-full.min.js"></script>

    
<link rel="stylesheet" href="/js/highslide/highslide.css">

    <style type="text/css">
        @media (max-width: 768px) {
            body {
                background-color: #f0f0f0;
                background: url('/imgs/xsbg.gif');
                background-attachment: fixed;
            }
        }
    </style>

    
    <!--<script type="text/javascript">
      if (document.images) {
        var avatar = new Image();
        avatar.src = '/imgs/avatar.jpg'
        var previews = 'preview1.jpg,preview2.jpg,preview3.jpg,preview4.jpg'.split(',')
        var previewsPreLoad = []
        for(var i = 0; i < length; i++) {
          previewsPreLoad.push(new Image())
          previewsPreLoad[previewsPreLoad.length - 1].src = '/imgs/preview' + previews[i]
        }
      }

    </script>-->
<meta name="generator" content="Hexo 5.4.0"></head>

<body>
    <!-- 背景轮播图功能 -->
    <section class="hidden-xs">
    <ul class="cb-slideshow">
        <li><span>天若</span></li>
        <li><span>有情</span></li>
        <li><span>天亦老</span></li>
        <li><span>我为</span></li>
        <li><span>长者</span></li>
        <li><span>续一秒</span></li>
    </ul>
</section>
    <!-- 欧尼酱功能, 谁用谁知道 -->
    
    <div class="gal-menu gal-dropdown">
    <div class="circle" id="gal">
        <div class="ring">
            <a href="https://acgboy.gitee.io" class="menuItem" style="left: 50%; top: 15%;">首页</a>
            
            <a class="menuItem" style="left: 80.3109%; top: 32.5%;">下一页</a>
            
            <a href="/archives" class="menuItem" style="left: 80.3109%; top: 67.5%;">归档</a>
            <a href="/about" class="menuItem" style="left: 50%; top: 85%;">关于</a>
            <a href="/message" class="menuItem" style="left: 19.6891%; top: 67.5%;">留言板</a>

            
            <a class="menuItem" style="left: 19.6891%; top: 32.5%;">上一页</a>
            
        </div>
        <audio id="audio" src="/imgs/oni.mp3"></audio>
    </div>
</div>
    
    <header class="navbar navbar-inverse" id="gal-header">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed"
                    data-toggle="collapse" data-target=".bs-navbar-collapse"
                    aria-expanded="false">

                <span class="fa fa-lg fa-reorder"></span>
            </button>

            <a href="https://acgboy.gitee.io">

                
                <style>
                    #gal-header .navbar-brand {
                        height: 54px;
                        line-height: 24px;
                        font-size: 28px;
                        opacity: 1;
                        background-color: rgba(0,0,0,0);
                        text-shadow: 0 0 5px #fff,0 0 10px #fff,0 0 15px #fff,0 0 20px #228DFF,0 0 35px #228DFF,0 0 40px #228DFF,0 0 50px #228DFF,0 0 75px #228DFF;
                    }
                </style>
                <!-- 这里使用文字(navbar_text or config.title) -->
                <div class="navbar-brand">魔</div>
                
            </a>
        </div>
        <div class="collapse navbar-collapse bs-navbar-collapse">
            <ul class="nav navbar-nav" id="menu-gal">
                
                
                <li class="">
                    <a href="/">
                        <i class="fa fa-home"></i>首页
                    </a>
                </li>
                
                
                
                <li class="">
                    <a href="/archives">
                        <i class="fa fa-archive"></i>归档
                    </a>
                </li>
                
                
                
                
                <li class="dropdown">
                    <!-- TODO 添加hover dropdown效果 -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false" data-hover="dropdown">
                        <i class="fa fa-list"></i>分类
                    </a>
                    <ul class="dropdown-menu">
                        
                        
                        <li>
                            <a href="/categories/Pi/">Pi</a>
                        </li>
                        
                        <li>
                            <a href="/categories/%E8%AE%A1%E7%AE%97%E6%9C%BA/">计算机</a>
                        </li>
                        
                        <li>
                            <a href="/categories/%E6%A0%91%E8%8E%93%E6%B4%BE/">树莓派</a>
                        </li>
                        
                        
                        <li>
                            <a href="/categories">...</a>
                        </li>
                        
                        
                    </ul>
                </li>
                
                
                
                
                
                <li class="dropdown">
                    <!-- TODO 添加hover dropdown效果 -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false" data-hover="dropdown">
                        <i class="fa fa-tags"></i>标签
                    </a>
                    <ul class="dropdown-menu">
                        
                        
                        <li>
                            <a href="/tags/%E6%A0%91%E8%8E%93%E6%B4%BE/">树莓派</a>
                        </li>
                        
                        <li>
                            <a href="/tags/Python/">Python</a>
                        </li>
                        
                        <li>
                            <a href="/tags/Hexo/">Hexo</a>
                        </li>
                        
                        
                        <li>
                            <a href="/tags">...</a>
                        </li>
                        
                        
                    </ul>
                </li>
                
                
                
            </ul>
        </div>
    </div>
</header>
    <div id="gal-body">
        <div class="container">
            <div class="row">
                <div class="col-md-8 gal-right" id="mainstay">
                    
<article class="article well article-body" id="article">
    <div class="breadcrumb">
        <i class="fa fa-home"></i>
        <a href="https://acgboy.gitee.io">魔</a>
        >
        <span>transmission</span>
    </div>
    <!-- 大型设备详细文章 -->
    <div class="hidden-xs">
        <div class="title-article">
            <h1>
                <a href="/2021/04/13/2020-04-13-transmission/">transmission</a>
            </h1>
        </div>
        <div class="tag-article">
            
            <span class="label label-gal">
                <i class="fa fa-tags"></i>
                
                <a href="/tags/Hexo/">Hexo</a>
                
            </span>
            
            <span class="label label-gal">
                <i class="fa fa-calendar"></i> 2021-04-13
            </span>
            
        </div>
    </div>
    <!-- 小型设备详细文章 -->
    <div class="visible-xs">
        <center>
            <div class="title-article">
                <h4>
                    <a href="/2021/04/13/2020-04-13-transmission/">transmission</a>
                </h4>
            </div>
            <p>
                <i class="fa fa-calendar"></i> 2021-04-13
            </p>
            <p>
                
                <i class="fa fa-tags"></i>
                
                <a href="/tags/Hexo/">Hexo</a>
                
                
                
            </p>
        </center>
    </div>
    <div class="content-article">
        <p><strong>安装所需依赖库</strong></p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install build-essential automake autoconf libtool pkg-config intltool libcurl4-openssl-dev libglib2.0-dev libevent-dev libminiupnpc-dev libgtk-3-dev libappindicator3-dev libssl-dev</span><br></pre></td></tr></table></figure>





<p><strong>编译并安装transmission-daemon</strong></p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">cd ~</span><br><span class="line">wget -c -O transmission-2.94.tar.xz  https://github.com/transmission/transmission-releases/raw/master/transmission-2.94.tar.xz -T 5</span><br><span class="line">tar xvf transmission-2.94.tar.xz</span><br><span class="line">cd transmission-2.94</span><br><span class="line">./configure</span><br><span class="line">make</span><br><span class="line">sudo make install</span><br></pre></td></tr></table></figure>





<p><strong>配置Transmission</strong><br>先切换到root用户，然后运行一次transmission-daemon来生成配置文件，等待5s左右再杀掉进程。</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sudo -s</span><br><span class="line">transmission-daemon</span><br><span class="line">killall transmission-daemon</span><br></pre></td></tr></table></figure>





<p>进入<code>~/.config/transmission-daemon</code>目录下，编辑<code>settings.json</code>配置文件，主要配置<code>download-dir</code>、<code>rpc-port</code>、<code>rpc-whitelist</code>这几个键的值。</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="attr">&quot;download-dir&quot;</span>: <span class="string">&quot;/root/download&quot;</span>,</span><br><span class="line">    <span class="attr">&quot;rpc-port&quot;</span>: <span class="number">9091</span>,</span><br><span class="line">    <span class="attr">&quot;rpc-whitelist&quot;</span>: <span class="string">&quot;127.0.0.1,192.168.*.*&quot;</span></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p>JSON</p>
<p><code>download-dir</code>为下载目录，一般设置为硬盘的挂载目录；<code>rpc-port</code>为Web界面的端口，一般默认即可；<code>rpc-whitelist</code>为Web界面的白名单，在白名单内的IP或IP段允许访问Web界面。配置好后再次运行即可生效和使用。</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">transmission-daemon</span><br></pre></td></tr></table></figure>





<p>注意：编辑配置文件前需要结束该进程才能使其配置生效，其他键值的具体配置请查阅<a target="_blank" rel="noopener" href="https://github.com/transmission/transmission/wiki/Editing-Configuration-Files">官方文档</a>。</p>
<hr>
<h2 id="进阶"><a href="#进阶" class="headerlink" title="进阶"></a>进阶</h2><p>  每次启动树莓派都需要手动运行transmission太麻烦了，可通过添加服务脚本到<code>/etc/init.d/</code>目录下来实现开机自启动。脚本如下：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#</span><span class="bash">!/bin/</span></span><br><span class="line"><span class="meta"></span></span><br><span class="line"><span class="meta">#</span><span class="bash"><span class="comment">## BEGIN INIT INFO</span></span></span><br><span class="line"><span class="meta">#</span><span class="bash"> Provides:           transmission</span></span><br><span class="line"><span class="meta">#</span><span class="bash"> Required-Start:     <span class="variable">$all</span></span></span><br><span class="line"><span class="meta">#</span><span class="bash"> Required-Stop:      <span class="variable">$all</span></span></span><br><span class="line"><span class="meta">#</span><span class="bash"> Default-Start:      2 3 4 5</span></span><br><span class="line"><span class="meta">#</span><span class="bash"> Default-Stop:       0 1 6</span></span><br><span class="line"><span class="meta">#</span><span class="bash"> Short-Description:  Run transmission-daemon</span></span><br><span class="line"><span class="meta">#</span><span class="bash"> Description:        Run transmission-daemon</span></span><br><span class="line"><span class="meta">#</span><span class="bash"><span class="comment">## END INIT INFO</span></span></span><br><span class="line"></span><br><span class="line">PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin</span><br><span class="line">PROC_NAME=transmission-daemon</span><br><span class="line">ProcNumber=`ps -ef |grep -w $PROC_NAME|grep -v grep|wc -l`</span><br><span class="line">export PATH</span><br><span class="line"></span><br><span class="line">case &quot;$1&quot; in</span><br><span class="line">    start)</span><br><span class="line">        if [ $ProcNumber -le 0 ];then</span><br><span class="line">            echo -e &quot;\033[33mtransmission-daemon will start...\033[0m&quot;</span><br><span class="line">            transmission-daemon -e /var/transmission.log -g ~/.config/transmission-daemon</span><br><span class="line">            sleep 1</span><br><span class="line">            echo -e &quot;\033[32mtransmission-daemon is started.\033[0m&quot;</span><br><span class="line">        else</span><br><span class="line">            runningPid=$(ps aux | grep transmission-daemon| grep -v grep | awk &#x27;&#123;print $2&#125;&#x27;)</span><br><span class="line">            echo -e &quot;\033[33mtransmission-daemon(pid $runningPid) is running.\033[0m&quot;</span><br><span class="line">        fi</span><br><span class="line">        ;;</span><br><span class="line">    stop)</span><br><span class="line">        if [ $ProcNumber -le 0 ];then</span><br><span class="line">            echo -e &quot;\033[33mtransmission-daemon is not run.\033[0m&quot;</span><br><span class="line">        else</span><br><span class="line">            echo -e &quot;\033[33mtransmission-daemon will stop.\033[0m&quot;</span><br><span class="line">            killall transmission-daemon</span><br><span class="line">            sleep 1</span><br><span class="line">            echo -e &quot;\033[31mtransmission-daemon is stoped.\033[0m&quot;</span><br><span class="line">        fi</span><br><span class="line">        ;;</span><br><span class="line">    restart)</span><br><span class="line">        if [ $ProcNumber -le 0 ];then</span><br><span class="line">            echo -e &quot;\033[33mtransmission-daemon is not run.Will start...\033[0m&quot;</span><br><span class="line">            transmission-daemon -e /var/transmission.log -g ~/.config/transmission-daemon</span><br><span class="line">            sleep 1</span><br><span class="line">            echo -e &quot;\033[32mtransmission-daemon is started.\033[0m&quot;</span><br><span class="line">        else</span><br><span class="line">            echo -e &quot;\033[33mtransmission-daemon will restart...\033[0m&quot;</span><br><span class="line">            killall transmission-daemon</span><br><span class="line">            transmission-daemon -e /var/transmission.log -g ~/.config/transmission-daemon</span><br><span class="line">            sleep 1</span><br><span class="line">            echo -e &quot;\033[32mtransmission-daemon is restarted.\033[0m&quot;</span><br><span class="line">        fi</span><br><span class="line">        ;;</span><br><span class="line">    status)</span><br><span class="line">        if [ $ProcNumber -le 0 ];then</span><br><span class="line">            echo -e &quot;\033[33mtransmission-daemon is not run.\033[0m&quot;</span><br><span class="line">        else</span><br><span class="line">            pid=$(ps aux | grep transmission-daemon| grep -v grep | awk &#x27;&#123;print $2&#125;&#x27;)</span><br><span class="line">            logFileIndex=$(ps aux | grep transmission-daemon| grep -v grep | awk &#x27;&#123;print $13&#125;&#x27;)</span><br><span class="line">            configDirIndex=$(ps aux | grep transmission-daemon| grep -v grep | awk &#x27;&#123;print $15&#125;&#x27;)</span><br><span class="line">            echo -e &quot;\033[32mtransmission-daemon(pid $pid) is running.\033[0m&quot;</span><br><span class="line">            echo -e &quot;==================================================================&quot;</span><br><span class="line">            echo -e &quot;Log file: $logFileIndex&quot;</span><br><span class="line">            echo -e &quot;Config dir: $configDirIndex&quot;</span><br><span class="line">            echo -e &quot;==================================================================&quot;</span><br><span class="line">        fi</span><br><span class="line">        ;;</span><br><span class="line">    *)</span><br><span class="line">        echo &quot;Usage: /etc/init.d/transmission &lt;start|stop|restart|status&gt;&quot;</span><br><span class="line">        ;;</span><br><span class="line">esac</span><br><span class="line">exit 0</span><br></pre></td></tr></table></figure>





<p>由于是root用户执行该脚本的，所以需要注意配置文件的目录实际为<code>/root/.config/transmission-daemon</code>。把该脚本放到<code>/etc/init.d/</code>目录下，并命名为<code>transmission</code>。</p>
<p>最后把该脚本添加到开机启动服务中：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo cd /etc/init.d/</span><br><span class="line">sudo update-rc.d transmission defaults 90</span><br></pre></td></tr></table></figure>





<p>重启即可看到效果。</p>

    </div>
</article>


                </div>
                <aside class="col-md-4 gal-left" id="sidebar">
    <!-- 此为sidebar的搜索框, 非搜索结果页面 -->
<aside id="sidebar-search">
    <div class="search hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <form class="form-inline clearfix" id="search-form" method="get"
              action="/search/index.html">
            <input type="text" name="s" class="form-control" id="searchInput" placeholder="搜索文章~" autocomplete="off">
            <button class="btn btn-danger btn-gal" type="submit">
                <i class="fa fa-search"></i>
            </button>
        </form>
    </div>
</aside>
    <aside id="sidebar-author">
    <div class="panel panel-gal" data-aos="flip-right" data-aos-duration="3000">
        <div class="panel-heading" style="text-align: center">
            <i class="fa fa-quote-left"></i>
            江湖百晓生
            <i class="fa fa-quote-right"></i>
        </div>
        <div class="author-panel text-center">
            <img src="/imgs/avatar.jpg" width="140" height="140"
                 alt="个人头像" class="author-image">
            <p class="author-description"></p>
        </div>
    </div>
</aside>
    
    <!-- 要配置好leancloud才能开启此小工具 -->
    
    
    <aside id="sidebar-recent_posts">
    <div class="panel panel-gal recent hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <div class="panel-heading">
            <i class="fa fa-refresh"></i>
            近期文章
            <i class="fa fa-times-circle panel-remove"></i>
            <i class="fa fa-chevron-circle-up panel-toggle"></i>
        </div>
        <ul class="list-group list-group-flush">
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/06/06/2021-6-6-Python%E7%BA%A2%E5%A4%96/">Python红外</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/05/24/2021-5-24-samba/">Samba</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/04/13/2020-04-13-transmission/">transmission</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/01/28/zero/">萌新:起点</a>
                </span>
            </li>
            
        </ul>
    </div>
</aside>
    
    
    <aside id="sidebar-rand_posts">
    <div class="panel panel-gal recent hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <div class="panel-heading">
            <i class="fa fa-refresh"></i>
            随机文章
            <i class="fa fa-times-circle panel-remove"></i>
            <i class="fa fa-chevron-circle-up panel-toggle"></i>
        </div>
        <ul class="list-group list-group-flush">
            
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/01/28/zero/">萌新:起点</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/04/13/2020-04-13-transmission/">transmission</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/05/24/2021-5-24-samba/">Samba</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2021/06/06/2021-6-6-Python%E7%BA%A2%E5%A4%96/">Python红外</a>
                </span>
            </li>
            
        </ul>
    </div>
</aside>
    
    
    <aside id="gal-sets">
        <div class="panel panel-gal hidden-xs" data-aos="fade-up" data-aos-duration="2000">
            <ul class="nav nav-pills pills-gal">

                
                <li>
                    <a href="/2021/04/13/2020-04-13-transmission/index.html#sidebar-tags" data-toggle="tab" id="tags-tab">热门标签</a>
                </li>
                
                
                
                <li>
                    <a href="/2021/04/13/2020-04-13-transmission/index.html#sidebar-links" data-toggle="tab" id="links-tab">个人链接</a>
                </li>
                
            </ul>
            <div class="tab-content">
                
                <div class="cloud-tags tab-pane nav bs-sidenav fade" id="sidebar-tags">
    
    <a href="/tags/%E6%A0%91%E8%8E%93%E6%B4%BE/" style="font-size: 14.158012531630963px;" class="tag-cloud-link">树莓派</a>
    
    <a href="/tags/Python/" style="font-size: 12.50350644020731px;" class="tag-cloud-link">Python</a>
    
    <a href="/tags/Hexo/" style="font-size: 12.029964991147015px;" class="tag-cloud-link">Hexo</a>
    
    <a href="/tags/samba/" style="font-size: 17.396951185222477px;" class="tag-cloud-link">samba</a>
    
    <a href="/tags/%E7%BA%A2%E5%A4%96%E9%81%A5%E6%8E%A7/" style="font-size: 12.414363523780242px;" class="tag-cloud-link">红外遥控</a>
    
</div>
                
                
                
                <div class="links tab-pane nav bs-sidenav fade" id="sidebar-links">
    
    <li>
        <a href="https://gitee.com/acgboy/" target="_blank">Gitee</a>
    </li>
    
</div>
                
            </div>
        </div>
    </aside>
    
</aside>
            </div>
        </div>
    </div>
    <footer id="gal-footer">
    <div class="container">

        Copyright © 2021 江湖百晓生 博主 <a href="https://qm.qq.com/cgi-bin/qm/qr?k=Z_MCVLNkEIlImmZ9qXcaNjYAHui8987t&noverify=0
" target="_blank">QQ</a>
.&nbsp;Hi <a href="https://jq.qq.com/?_wv=1027&k=04wUpnRb" target="_blank">QQ群</a>
    </div>
</footer>

<!-- 回到顶端 -->
<div id="gal-gotop">
    <i class="fa fa-angle-up"></i>
</div>
</body>

<script src="/js/activate-power-mode.js"></script>

<script>

    // 配置highslide
	hs.graphicsDir = '/js/highslide/graphics/'
    hs.outlineType = "rounded-white";
    hs.dimmingOpacity = 0.8;
    hs.outlineWhileAnimating = true;
    hs.showCredits = false;
    hs.captionEval = "this.thumb.alt";
    hs.numberPosition = "caption";
    hs.align = "center";
    hs.transitions = ["expand", "crossfade"];
    hs.lang.number = '共%2张图, 当前是第%1张';
    hs.addSlideshow({
      interval: 5000,
      repeat: true,
      useControls: true,
      fixedControls: "fit",
      overlayOptions: {
        opacity: 0.75,
        position: "bottom center",
        hideOnMouseOut: true
      }
    })

    // 初始化aos
    AOS.init({
      duration: 1000,
      delay: 0,
      easing: 'ease-out-back'
    });

</script>
<script>
	POWERMODE.colorful = 'true';    // make power mode colorful
	POWERMODE.shake = 'true';       // turn off shake
	// TODO 这里根据具体情况修改
	document.body.addEventListener('input', POWERMODE);
</script>
<script>
    window.slideConfig = {
      prefix: '/imgs/slide/background',
      ext: 'jpg',
      maxCount: '6'
    }
</script>

<script src="/js/hs.js"></script>
<script src="/js/blog.js"></script>



<script src="/js/oni.js"></script>




</html>